from django.contrib import admin
from iperscribo.pages.models import Page, Revision, Tag

class PageAdmin(admin.ModelAdmin):
    pass
admin.site.register(Page, PageAdmin)

class RevisionAdmin(admin.ModelAdmin):
    list_display=('page', 'uid', 'pid', 'owner', 'creation_date',)
    ordering = ['page', '-pid']
    #search_fields = ['page']
    list_filter=['page']
    
    
admin.site.register(Revision, RevisionAdmin)

class TagAdmin(admin.ModelAdmin):
    pass
admin.site.register(Tag, TagAdmin)